package com.aivin.myrecyclerviewsample.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;

import androidx.appcompat.app.AppCompatActivity;

import com.aivin.myrecyclerviewsample.R;


public class WelcomeActivity extends AppCompatActivity  implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  WindowManager.LayoutParams.FLAG_FULLSCREEN);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,   WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        getSupportActionBar().hide();
        setContentView(R.layout.activity_welcom);


        findViewById(R.id.Btn_customLayoutManager).setOnClickListener(this);

    }


    @Override
    public void onClick(View view) {
        Class clz =null ;
        switch (view.getId()){
            case R.id.Btn_customLayoutManager:
                clz = MainActivity.class ;
                break;
        }

        Intent intent =new Intent(this ,clz) ;
        startActivity(intent);

    }
}
